package cn.tedu.review;

public class TestInter {
    public static void main(String[] args) {
        Inter1Impl i = new Inter1Impl();
        i.eat();
        i.play("");
    }
}
interface Inter1{
    int age = 20;
    void eat();
    public abstract int play(String s);
}
class Inter1Impl implements Inter1{

    @Override
    public void eat() {
        System.out.println("没钱吃早饭");
    }

    @Override
    public int play(String s) {
        System.out.println("正在玩代码");
        return 666;
    }
}